I am using the Analysis Wizard in DOORS 9.3 to capture linked attributes. The problem is the returned results have multiple attributes in a single column. In order to sort on the attributes, I need to place each individual attribute in a separate column. I'm not a DXL programmer, so I can't modify the code other than to put the attribute name in the code. |
Re: Moving multiple DXL-generated attributes from one column to multiple column You should be able to open the current layout, copy the DXL code, and insert it into a couple new columns. I believe a novis should be able to search for your attribute names and see the two or three lines of code that deal with them and then delete them; perhaps looks like this: ..s = probeAttr_(oOther, "Attr A") ..display "Attr A\t" s ..s = probeAttr_(oOther, "Attr B") ..display "Attr B\t" s Well, in the first layout delete the 2nd two lines and title the column "Attr A"; in the 2nd column delete the 1st two lines and label the column "Attr B".
|
Re: Moving multiple DXL-generated attributes from one column to multiple column if (depth ==3){ disp = "" s = probeRichAttr_(othero,"Configurable Item Name",false) plain = probeAttr_(othero,"Configurable Item Name") plainTextLen = length plain if ((plainTextLen)> 40) s = cutRichText(s,40,plainTextLen) disp = disp s plainDisp = plainText disp plainTextLen = length plainDisp if ((plainTextLen) > 40) disp = cutRichText(disp,15,plainTextLen) displayRich("\\pard " disp) Where Configurable Item Name is the attribute that has multiple names in a single column. I would like to be able to put only one name in separate columns. Thanks for your help in advance. douglyle |
Re: Moving multiple DXL-generated attributes from one column to multiple column lyleworks - Thu Jun 09 10:39:25 EDT 2011 I see only one attribute displayed. I had originally thought you were following a single link and displaying more than one attribute for a single target object, but I now suspect you are displaying the same attribute value for multiple targets. Links: ... A1 ->B1 ->C1 ... A1 ->B2 ->C2 Perhaps you don't want to see the "Configurable Item Name" for both C1 and C2 in the same column displayed for A1; and are asking that the first linked object in C is displayed in column 1 and the 2nd displayed in column 2, etc. That doesn't make much sense to me. Seems to me that you would WANT all the linked "Configurable Items" for each A requirement in the same column, so long as they were correctly labeled. But if you insist you could fairly easily adjust the wizard code such that its counting the links, and only displaying when it has the "correct" count of links. So adjust the code to count the links going to C, then copy the code to each of 3 layouts, then adjust the code for the first column if LinkCount == 1; 2nd if LinkCount == 2.
|
Re: Moving multiple DXL-generated attributes from one column to multiple column You are absolutely correct. This is a customer request for layout purposes in a design document. Who can guess if it makes sense or not. I believe they want to be able to sort some 550 records on the individual configurable item name. Your suggestion sounds right on, but as I mentioned, I'm not a DXL programmer and I'm not sure where you want me to put the code to count the links or what the syntax would be. I don't see any of the code you suggest in the script that I might be able to modify it. Can you tell me where to put this code? After asking that question, I hope you don't say where I think you want me to put it! :) Thanks. douglyle |
Re: Moving multiple DXL-generated attributes from one column to multiple column lyleworks - Fri Jun 10 11:00:43 EDT 2011
I do not need to be encouraged to suggest places for folks to put stuff; I'm perfectly capable and willing to do that on my own. ..err.. I mean ... on my own!.
Configurable Items for A_23 are:
c_12 "ABC",
c_13 "DEF",
c_2 "Xaa"
|